{% extends "page/index.html" %}
{% load i18n fb_versions %}

{% block css %}
    <link type="text/css" rel="stylesheet" media="all" href="/medias/css/lightbox.css" />
{% endblock %}

{% block content %}
    {{ block.super }}
    <table class="sponsor">
      <tr>
      {% for gallery in galleries %}
	<td><a href="{{ gallery.get_absolute_url }}">
	  <img src="{% version gallery.get_random_image 'thumbnail' %}" />
	  <p>{% blocktrans count gallery.count as nb %}{{ nb }} photo{% plural %}{{ nb }} photos{% endblocktrans %}</p></a>
	</td> 
	{% cycle '' '' '' '' '</tr><tr>' %}
	{% empty %}
	<td>{% trans 'Aucune galerie ni image pour le moment' %}</td>
      {% endfor %}
      </tr>
    </table>
{% endblock %}

{% block admin %}
    <a href="/admin/gallery/gallery/">Administration</a>
{% endblock %}
